package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 收货信息表
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_receiver")
public class ShopReceiver extends Model<ShopReceiver> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	private Date ctime;
    /**
     * 最后修改时间
     */
	private Date mtime;
    /**
     * 详细地址
     */
	private String address;
    /**
     * 地区
     */
	@TableField("area_path")
	private String areaPath;
    /**
     * 是否默认 1默认 0不默认
     */
	@TableField("is_default")
	private Boolean isDefault;
    /**
     * 电话
     */
	private String mobile;
    /**
     * 姓名
     */
	private String name;
    /**
     * 手机
     */
	private String phone;
    /**
     * 邮政编码
     */
	@TableField("zip_code")
	private String zipCode;
    /**
     * 会员ID
     */
	@TableField("user_id")
	private Integer userId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAreaPath() {
		return areaPath;
	}

	public void setAreaPath(String areaPath) {
		this.areaPath = areaPath;
	}

	public Boolean getDefault() {
		return isDefault;
	}

	public void setDefault(Boolean isDefault) {
		this.isDefault = isDefault;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopReceiver{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", address=" + address +
			", areaPath=" + areaPath +
			", isDefault=" + isDefault +
			", mobile=" + mobile +
			", name=" + name +
			", phone=" + phone +
			", zipCode=" + zipCode +
			", userId=" + userId +
			"}";
	}
}
